<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{tiersribmsgs['navigation.back']}" action="/jsf/tiersrib/listTiersRibs.xhtml"/>
		
			<p:panel header="#{tiersribmsgs['tiersrib.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbtiers.title']}:*" />
							<h:outputText value="#{TiersRibComponent.tiersrib.trbTiers}"/>
						<h:outputText value="#{tiersribmsgs['tiersrib.trbrib.title']}:*" />
							<h:outputText value="#{TiersRibComponent.tiersrib.trbRib}"/>
						<h:outputText value="#{tiersribmsgs['tiersrib.trbpays.title']}:" />
							<h:inputText id="tiersrib_trbpays" value="#{TiersRibComponent.tiersrib.trbPays}" required="false" label="tiersrib_trbpays" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbetablissement.title']}:" />
							<h:inputText id="tiersrib_trbetablissement" value="#{TiersRibComponent.tiersrib.trbEtablissement}" required="false" label="tiersrib_trbetablissement" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbguichet.title']}:" />
							<h:inputText id="tiersrib_trbguichet" value="#{TiersRibComponent.tiersrib.trbGuichet}" required="false" label="tiersrib_trbguichet" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdenomguichet.title']}:" />
							<h:inputText id="tiersrib_trbdenomguichet" value="#{TiersRibComponent.tiersrib.trbDenomGuichet}" required="false" label="tiersrib_trbdenomguichet" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbcompte.title']}:" />
							<h:inputText id="tiersrib_trbcompte" value="#{TiersRibComponent.tiersrib.trbCompte}" required="false" label="tiersrib_trbcompte" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbclerib.title']}:" />
							<h:inputText id="tiersrib_trbclerib" value="#{TiersRibComponent.tiersrib.trbCleRib}" required="false" label="tiersrib_trbclerib" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbguichetdom.title']}:" />
							<h:inputText id="tiersrib_trbguichetdom" value="#{TiersRibComponent.tiersrib.trbGuichetDom}" required="false" label="tiersrib_trbguichetdom" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdenomdom.title']}:" />
							<h:inputText id="tiersrib_trbdenomdom" value="#{TiersRibComponent.tiersrib.trbDenomDom}" required="false" label="tiersrib_trbdenomdom" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbtitulaire.title']}:" />
							<h:inputText id="tiersrib_trbtitulaire" value="#{TiersRibComponent.tiersrib.trbTitulaire}" required="false" label="tiersrib_trbtitulaire" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbribvalide.title']}:" />
							<h:selectBooleanCheckbox id="tiersrib_trbribvalide" value="#{TiersRibComponent.tiersrib.trbRibValide}" required="false" label="tiersrib_trbribvalide" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbiban.title']}:" />
							<h:inputText id="tiersrib_trbiban" value="#{TiersRibComponent.tiersrib.trbIban}" required="false" label="tiersrib_trbiban" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbbic.title']}:" />
							<h:inputText id="tiersrib_trbbic" value="#{TiersRibComponent.tiersrib.trbBic}" required="false" label="tiersrib_trbbic" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdatecreation.title']}:" />
							<p:calendar id="tiersrib_trbdatecreation" value="#{TiersRibComponent.tiersrib.trbDateCreation}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdatemodification.title']}:" />
							<p:calendar id="tiersrib_trbdatemodification" value="#{TiersRibComponent.tiersrib.trbDateModification}" required="false"  converter="primefacesCalendarConverter" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{tiersribmsgs['navigation.save']}" action="#{TiersRibComponent.saveTiersRib(TiersRibComponent.tiersrib)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>